import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity({ name: 'order_payment' })
export class OrderPaymentEntity extends BaseEntity {
    @PrimaryGeneratedColumn()
    id: number;

    @Column({
        type: "int"
    })
    orderId: number;//订单id


    @Column({
        type: "varchar",
        length: 300
    })
    payType: string;//支付方式


    @Column({
        type: "int"
    })
    payMoney: number;//支付金额

    @Column({
        type: "varchar",
        length: 300
    })
    payWay: string;//支付方式

    @Column({
        type: 'datetime',
    })
    payTime: Date;//r日期

}
